{include file="public/head"}
<!--loading页开始-->
<div class="loading">
	<div class="loader">
        <div class="loader-inner pacman">
          <div></div>
          <div></div>
          <div></div>
          <div></div>
          <div></div>
        </div>
	</div>
</div>
<!--loading页结束-->
	<body>
		<!--header star-->
		<header class="mui-bar mui-bar-nav" id="header">
			<a class="btn" href="javascript:history.go(-1)">
	            <i class="iconfont icon-fanhui"></i>
	        </a>
	        <div class="top-sch-box top-sch-boxtwo flex-col">
	                      确认订单
	        </div>
	    </header>
	    <!--header end-->
	    <form id="form1" method="post" action="orderpay">
		    <div class="warp warptwo clearfloat">
		    	<div class="confirm clearfloat">
		    		<div class="add clearfloat box-s">
		    			<a href="{:url('user/choiceAddress')}?shop_id={$data.shop_id}">
			    			<div class="left clearfloat fl">
			    				<i class="iconfont icon-dizhi1"></i>
			    			</div>
			    			<div class="middle clearfloat fl">
			    				<p class="tit">
			    					收货人：{$address.receive_name}&nbsp;&nbsp;&nbsp;&nbsp;{$address.phone}
			    				</p>
			    				<p class="fu-tit over2">
			    					收货地址：{$address.room_address}
			    				</p>
			    			</div>
			    			<div class="left clearfloat fr">
			    				<i class="iconfont icon-jiantou1"></i>
			    			</div>
		    			</a>
		    		</div>
		    		{volist name="cartinfo" id="vol"}
		    		<div class="lie clearfloat">
						<a href="#">
							<div class="tu clearfloat fl">
								<img src="/shop/upload/{$vol.goods_picture}"/>
							</div>
						</a>
						<div class="right clearfloat fl">
							<a href="#">
								<p class="tit over">{$vol.goods_name}</p>
								<p class="fu-tit"></p>
							</a>
							<div class="xia clearfloat">
								<a href="#">
									<p class="jifen fl over">{$vol.salesprice}</p>
								</a>
								<span class="fr db">×{$vol.num}</span>
							</div>
						</div>
					</div>
					{/volist}
					
			     	<div class="gmshu gmshutwo clearfloat box-s fl">
						<div class="gcontent clearfloat">
							<p class="fl">取货方式</p>
				     		<div class="you clearfloat fr">
				     			<div class="xuan clearfloat">
				     				<div class="radiotwo" > 
				     					<label>
									        <input type="radio" name="pickup_method" value="1" checked/>
									        <div class="option"></div>
									        <span class="opt-text">自提</span>
									    </label>
									    
									</div>
				     			</div>
			    				<div class="xuan clearfloat">
				     				<div class="radiotwo" > 
									    <label>
									        <input type="radio" name="pickup_method" value="2" />
									        <div class="option"></div>
									        <span class="opt-text">送货上门</span>
									    </label>
									</div>
				     			</div>
				     		</div>
						</div>		     		
			     	</div>
			     	<div class="gmshu gmshuthree clearfloat box-s fl">
						<div class="gcontent clearfloat">
							<p class="fl">买家留言</p>
				     		<div class="you clearfloat fl">
				     			<input type="text" name="buyer_message"  class="text" placeholder="选填 对本次交易需求给商家留言" />
				     		</div>
						</div>		     		
			     	</div>
			     	<div class="gmshu clearfloat box-s fl">
			     		<input type="hidden" name="num" value="{$data.num}"/>
			     		<input type="hidden" name="order_money" value="{$data.ordermoney}"/>
			     		<input type="hidden" name="receive_name" value="{$address.receive_name}"/>
			     		<input type="hidden" name="receive_address" value="{$address.room_address}"/>
			     		<input type="hidden" name="receive_phone" value="{$address.phone}"/>
			     		<input type="hidden" name="out_room_id" value="{$address.out_room_id}"/>
			     		<input type="hidden" name="community_name" value="{$address.community_name}"/>
			     		<input type="hidden" name="shop_id" value="{$shop_id}"/>

						<p class="fr">共{$data.num}件商品   合计<samp>￥{$data.ordermoney}</samp></p>	     		
			     	</div>
		    	</div>
		    </div>	    
		    
			<!--settlement star-->
		    <div class="settlement clearfloat">
		    	<div class="zuo clearfloat fl box-s">
		    		共<span>{$data.num}</span>件  总金额：<span>￥{$data.ordermoney}</span>
		    	</div>
		    	<a  class="fl db" onclick="submit_form()">
		    		提交订单
		    	</a>
		    </div>
		</form>
	    <!--settlement end-->
	    
		<!--footer star-->
	    {include file="public/bottom"}
		<!--footer end-->
	</body>
	
</html>
<script type="text/javascript">
	function submit_form(){
		
		var form = document.getElementById('form1');
		form.submit();
		
	}
</script>
